3.15 \(\int \frac{\cos ^2(a+b x)}{(c+d x)^3} \, dx\)
Optimal. Leaf size=112 \[ -\frac{b^2 \cos \left (2 a-\frac{2 b c}{d}\right ) \text{CosIntegral}\left (\frac{2 b c}{d}+2 b x\right )}{d^3}+\frac{b^2 \sin \left (2 a-\frac{2 b c}{d}\right ) \text{Si}\left (\frac{2 b c}{d}+2 b x\right )}{d^3}+\frac{b \sin (a+b x) \cos (a+b x)}{d^2 (c+d x)}-\frac{\cos ^2(a+b x)}{2 d (c+d x)^2} \]
[Out]
-Cos[a + b*x]^2/(2*d*(c + d*x)^2) - (b^2*Cos[2*a - (2*b*c)/d]*CosIntegral[(2*b*c)/d + 2*b*x])/d^3 + (b*Cos[a +
b*x]*Sin[a + b*x])/(d^2*(c + d*x)) + (b^2*Sin[2*a - (2*b*c)/d]*SinIntegral[(2*b*c)/d + 2*b*x])/d^3
________________________________________________________________________________________
Rubi [A] time = 0.196853, antiderivative size = 112, normalized size of antiderivative = 1.,
number of steps used = 7, number of rules used = 6, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.375, Rules used =
{3314, 31, 3312, 3303, 3299, 3302} \[ -\frac{b^2 \cos \left (2 a-\frac{2 b c}{d}\right ) \text{CosIntegral}\left (\frac{2 b c}{d}+2 b x\right )}{d^3}+\frac{b^2 \sin \left (2 a-\frac{2 b c}{d}\right ) \text{Si}\left (\frac{2 b c}{d}+2 b x\right )}{d^3}+\frac{b \sin (a+b x) \cos (a+b x)}{d^2 (c+d x)}-\frac{\cos ^2(a+b x)}{2 d (c+d x)^2} \]
Antiderivative was successfully verified.
[In]
Int[Cos[a + b*x]^2/(c + d*x)^3,x]
[Out]
-Cos[a + b*x]^2/(2*d*(c + d*x)^2) - (b^2*Cos[2*a - (2*b*c)/d]*CosIntegral[(2*b*c)/d + 2*b*x])/d^3 + (b*Cos[a +
b*x]*Sin[a + b*x])/(d^2*(c + d*x)) + (b^2*Sin[2*a - (2*b*c)/d]*SinIntegral[(2*b*c)/d + 2*b*x])/d^3
Rule 3314
Int[((c_.) + (d_.)*(x_))^(m_)*((b_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp[((c + d*x)^(m + 1)*(b*Si
n[e + f*x])^n)/(d*(m + 1)), x] + (Dist[(b^2*f^2*n*(n - 1))/(d^2*(m + 1)*(m + 2)), Int[(c + d*x)^(m + 2)*(b*Sin
[e + f*x])^(n - 2), x], x] - Dist[(f^2*n^2)/(d^2*(m + 1)*(m + 2)), Int[(c + d*x)^(m + 2)*(b*Sin[e + f*x])^n, x
], x] - Simp[(b*f*n*(c + d*x)^(m + 2)*Cos[e + f*x]*(b*Sin[e + f*x])^(n - 1))/(d^2*(m + 1)*(m + 2)), x]) /; Fre
eQ[{b, c, d, e, f}, x] && GtQ[n, 1] && LtQ[m, -2]
Rule 31
Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]
Rule 3312
Int[((c_.) + (d_.)*(x_))^(m_)*sin[(e_.) + (f_.)*(x_)]^(n_), x_Symbol] :> Int[ExpandTrigReduce[(c + d*x)^m, Sin
[e + f*x]^n, x], x] /; FreeQ[{c, d, e, f, m}, x] && IGtQ[n, 1] && ( !RationalQ[m] || (GeQ[m, -1] && LtQ[m, 1])
)
Rule 3303
Int[sin[(e_.) + (f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Dist[Cos[(d*e - c*f)/d], Int[Sin[(c*f)/d + f*x]
/(c + d*x), x], x] + Dist[Sin[(d*e - c*f)/d], Int[Cos[(c*f)/d + f*x]/(c + d*x), x], x] /; FreeQ[{c, d, e, f},
x] && NeQ[d*e - c*f, 0]
Rule 3299
Int[sin[(e_.) + (f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[SinIntegral[e + f*x]/d, x] /; FreeQ[{c, d,
e, f}, x] && EqQ[d*e - c*f, 0]
Rule 3302
Int[sin[(e_.) + (f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[CosIntegral[e - Pi/2 + f*x]/d, x] /; FreeQ
[{c, d, e, f}, x] && EqQ[d*(e - Pi/2) - c*f, 0]
Rubi steps
\begin{align*} \int \frac{\cos ^2(a+b x)}{(c+d x)^3} \, dx &=-\frac{\cos ^2(a+b x)}{2 d (c+d x)^2}+\frac{b \cos (a+b x) \sin (a+b x)}{d^2 (c+d x)}+\frac{b^2 \int \frac{1}{c+d x} \, dx}{d^2}-\frac{\left (2 b^2\right ) \int \frac{\cos ^2(a+b x)}{c+d x} \, dx}{d^2}\\ &=-\frac{\cos ^2(a+b x)}{2 d (c+d x)^2}+\frac{b^2 \log (c+d x)}{d^3}+\frac{b \cos (a+b x) \sin (a+b x)}{d^2 (c+d x)}-\frac{\left (2 b^2\right ) \int \left (\frac{1}{2 (c+d x)}+\frac{\cos (2 a+2 b x)}{2 (c+d x)}\right ) \, dx}{d^2}\\ &=-\frac{\cos ^2(a+b x)}{2 d (c+d x)^2}+\frac{b \cos (a+b x) \sin (a+b x)}{d^2 (c+d x)}-\frac{b^2 \int \frac{\cos (2 a+2 b x)}{c+d x} \, dx}{d^2}\\ &=-\frac{\cos ^2(a+b x)}{2 d (c+d x)^2}+\frac{b \cos (a+b x) \sin (a+b x)}{d^2 (c+d x)}-\frac{\left (b^2 \cos \left (2 a-\frac{2 b c}{d}\right )\right ) \int \frac{\cos \left (\frac{2 b c}{d}+2 b x\right )}{c+d x} \, dx}{d^2}+\frac{\left (b^2 \sin \left (2 a-\frac{2 b c}{d}\right )\right ) \int \frac{\sin \left (\frac{2 b c}{d}+2 b x\right )}{c+d x} \, dx}{d^2}\\ &=-\frac{\cos ^2(a+b x)}{2 d (c+d x)^2}-\frac{b^2 \cos \left (2 a-\frac{2 b c}{d}\right ) \text{Ci}\left (\frac{2 b c}{d}+2 b x\right )}{d^3}+\frac{b \cos (a+b x) \sin (a+b x)}{d^2 (c+d x)}+\frac{b^2 \sin \left (2 a-\frac{2 b c}{d}\right ) \text{Si}\left (\frac{2 b c}{d}+2 b x\right )}{d^3}\\ \end{align*}
Mathematica [A] time = 0.924553, size = 102, normalized size = 0.91 \[ \frac{-2 b^2 \cos \left (2 a-\frac{2 b c}{d}\right ) \text{CosIntegral}\left (\frac{2 b (c+d x)}{d}\right )+2 b^2 \sin \left (2 a-\frac{2 b c}{d}\right ) \text{Si}\left (\frac{2 b (c+d x)}{d}\right )+\frac{d \left (b (c+d x) \sin (2 (a+b x))-d \cos ^2(a+b x)\right )}{(c+d x)^2}}{2 d^3} \]
Antiderivative was successfully verified.
[In]
Integrate[Cos[a + b*x]^2/(c + d*x)^3,x]
[Out]
(-2*b^2*Cos[2*a - (2*b*c)/d]*CosIntegral[(2*b*(c + d*x))/d] + (d*(-(d*Cos[a + b*x]^2) + b*(c + d*x)*Sin[2*(a +
b*x)]))/(c + d*x)^2 + 2*b^2*Sin[2*a - (2*b*c)/d]*SinIntegral[(2*b*(c + d*x))/d])/(2*d^3)
________________________________________________________________________________________
Maple [A] time = 0.032, size = 193, normalized size = 1.7 \begin{align*}{\frac{1}{b} \left ({\frac{{b}^{3}}{4} \left ( -{\frac{\cos \left ( 2\,bx+2\,a \right ) }{ \left ( \left ( bx+a \right ) d-da+cb \right ) ^{2}d}}-{\frac{1}{d} \left ( -2\,{\frac{\sin \left ( 2\,bx+2\,a \right ) }{ \left ( \left ( bx+a \right ) d-da+cb \right ) d}}+2\,{\frac{1}{d} \left ( 2\,{\frac{1}{d}{\it Si} \left ( 2\,bx+2\,a+2\,{\frac{-da+cb}{d}} \right ) \sin \left ( 2\,{\frac{-da+cb}{d}} \right ) }+2\,{\frac{1}{d}{\it Ci} \left ( 2\,bx+2\,a+2\,{\frac{-da+cb}{d}} \right ) \cos \left ( 2\,{\frac{-da+cb}{d}} \right ) } \right ) } \right ) } \right ) }-{\frac{{b}^{3}}{4\, \left ( \left ( bx+a \right ) d-da+cb \right ) ^{2}d}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
int(cos(b*x+a)^2/(d*x+c)^3,x)
[Out]
1/b*(1/4*b^3*(-cos(2*b*x+2*a)/((b*x+a)*d-d*a+c*b)^2/d-(-2*sin(2*b*x+2*a)/((b*x+a)*d-d*a+c*b)/d+2*(2*Si(2*b*x+2
*a+2*(-a*d+b*c)/d)*sin(2*(-a*d+b*c)/d)/d+2*Ci(2*b*x+2*a+2*(-a*d+b*c)/d)*cos(2*(-a*d+b*c)/d)/d)/d)/d)-1/4*b^3/(
(b*x+a)*d-d*a+c*b)^2/d)
________________________________________________________________________________________
Maxima [C] time = 1.61695, size = 278, normalized size = 2.48 \begin{align*} -\frac{16 \, b^{3}{\left (E_{3}\left (\frac{2 i \, b c + 2 i \,{\left (b x + a\right )} d - 2 i \, a d}{d}\right ) + E_{3}\left (-\frac{2 i \, b c + 2 i \,{\left (b x + a\right )} d - 2 i \, a d}{d}\right )\right )} \cos \left (-\frac{2 \,{\left (b c - a d\right )}}{d}\right ) - b^{3}{\left (16 i \, E_{3}\left (\frac{2 i \, b c + 2 i \,{\left (b x + a\right )} d - 2 i \, a d}{d}\right ) - 16 i \, E_{3}\left (-\frac{2 i \, b c + 2 i \,{\left (b x + a\right )} d - 2 i \, a d}{d}\right )\right )} \sin \left (-\frac{2 \,{\left (b c - a d\right )}}{d}\right ) + 16 \, b^{3}}{64 \,{\left (b^{2} c^{2} d - 2 \, a b c d^{2} +{\left (b x + a\right )}^{2} d^{3} + a^{2} d^{3} + 2 \,{\left (b c d^{2} - a d^{3}\right )}{\left (b x + a\right )}\right )} b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(cos(b*x+a)^2/(d*x+c)^3,x, algorithm="maxima")
[Out]
-1/64*(16*b^3*(exp_integral_e(3, (2*I*b*c + 2*I*(b*x + a)*d - 2*I*a*d)/d) + exp_integral_e(3, -(2*I*b*c + 2*I*
(b*x + a)*d - 2*I*a*d)/d))*cos(-2*(b*c - a*d)/d) - b^3*(16*I*exp_integral_e(3, (2*I*b*c + 2*I*(b*x + a)*d - 2*
I*a*d)/d) - 16*I*exp_integral_e(3, -(2*I*b*c + 2*I*(b*x + a)*d - 2*I*a*d)/d))*sin(-2*(b*c - a*d)/d) + 16*b^3)/
((b^2*c^2*d - 2*a*b*c*d^2 + (b*x + a)^2*d^3 + a^2*d^3 + 2*(b*c*d^2 - a*d^3)*(b*x + a))*b)
________________________________________________________________________________________
Fricas [A] time = 1.42418, size = 502, normalized size = 4.48 \begin{align*} -\frac{d^{2} \cos \left (b x + a\right )^{2} - 2 \,{\left (b d^{2} x + b c d\right )} \cos \left (b x + a\right ) \sin \left (b x + a\right ) - 2 \,{\left (b^{2} d^{2} x^{2} + 2 \, b^{2} c d x + b^{2} c^{2}\right )} \sin \left (-\frac{2 \,{\left (b c - a d\right )}}{d}\right ) \operatorname{Si}\left (\frac{2 \,{\left (b d x + b c\right )}}{d}\right ) +{\left ({\left (b^{2} d^{2} x^{2} + 2 \, b^{2} c d x + b^{2} c^{2}\right )} \operatorname{Ci}\left (\frac{2 \,{\left (b d x + b c\right )}}{d}\right ) +{\left (b^{2} d^{2} x^{2} + 2 \, b^{2} c d x + b^{2} c^{2}\right )} \operatorname{Ci}\left (-\frac{2 \,{\left (b d x + b c\right )}}{d}\right )\right )} \cos \left (-\frac{2 \,{\left (b c - a d\right )}}{d}\right )}{2 \,{\left (d^{5} x^{2} + 2 \, c d^{4} x + c^{2} d^{3}\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(cos(b*x+a)^2/(d*x+c)^3,x, algorithm="fricas")
[Out]
-1/2*(d^2*cos(b*x + a)^2 - 2*(b*d^2*x + b*c*d)*cos(b*x + a)*sin(b*x + a) - 2*(b^2*d^2*x^2 + 2*b^2*c*d*x + b^2*
c^2)*sin(-2*(b*c - a*d)/d)*sin_integral(2*(b*d*x + b*c)/d) + ((b^2*d^2*x^2 + 2*b^2*c*d*x + b^2*c^2)*cos_integr
al(2*(b*d*x + b*c)/d) + (b^2*d^2*x^2 + 2*b^2*c*d*x + b^2*c^2)*cos_integral(-2*(b*d*x + b*c)/d))*cos(-2*(b*c -
a*d)/d))/(d^5*x^2 + 2*c*d^4*x + c^2*d^3)
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cos ^{2}{\left (a + b x \right )}}{\left (c + d x\right )^{3}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(cos(b*x+a)**2/(d*x+c)**3,x)
[Out]
Integral(cos(a + b*x)**2/(c + d*x)**3, x)
________________________________________________________________________________________
Giac [C] time = 1.97172, size = 6934, normalized size = 61.91 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(cos(b*x+a)^2/(d*x+c)^3,x, algorithm="giac")
[Out]
-1/2*(b^2*d^2*x^2*real_part(cos_integral(2*b*x + 2*b*c/d))*tan(b*x)^2*tan(a)^2*tan(b*c/d)^2 + b^2*d^2*x^2*real
_part(cos_integral(-2*b*x - 2*b*c/d))*tan(b*x)^2*tan(a)^2*tan(b*c/d)^2 - 2*b^2*d^2*x^2*imag_part(cos_integral(
2*b*x + 2*b*c/d))*tan(b*x)^2*tan(a)^2*tan(b*c/d) + 2*b^2*d^2*x^2*imag_part(cos_integral(-2*b*x - 2*b*c/d))*tan
(b*x)^2*tan(a)^2*tan(b*c/d) - 4*b^2*d^2*x^2*sin_integral(2*(b*d*x + b*c)/d)*tan(b*x)^2*tan(a)^2*tan(b*c/d) + 2
*b^2*d^2*x^2*imag_part(cos_integral(2*b*x + 2*b*c/d))*tan(b*x)^2*tan(a)*tan(b*c/d)^2 - 2*b^2*d^2*x^2*imag_part
(cos_integral(-2*b*x - 2*b*c/d))*tan(b*x)^2*tan(a)*tan(b*c/d)^2 + 4*b^2*d^2*x^2*sin_integral(2*(b*d*x + b*c)/d
)*tan(b*x)^2*tan(a)*tan(b*c/d)^2 + 2*b^2*c*d*x*real_part(cos_integral(2*b*x + 2*b*c/d))*tan(b*x)^2*tan(a)^2*ta
n(b*c/d)^2 + 2*b^2*c*d*x*real_part(cos_integral(-2*b*x - 2*b*c/d))*tan(b*x)^2*tan(a)^2*tan(b*c/d)^2 - b^2*d^2*
x^2*real_part(cos_integral(2*b*x + 2*b*c/d))*tan(b*x)^2*tan(a)^2 - b^2*d^2*x^2*real_part(cos_integral(-2*b*x -
2*b*c/d))*tan(b*x)^2*tan(a)^2 + 4*b^2*d^2*x^2*real_part(cos_integral(2*b*x + 2*b*c/d))*tan(b*x)^2*tan(a)*tan(
b*c/d) + 4*b^2*d^2*x^2*real_part(cos_integral(-2*b*x - 2*b*c/d))*tan(b*x)^2*tan(a)*tan(b*c/d) - 4*b^2*c*d*x*im
ag_part(cos_integral(2*b*x + 2*b*c/d))*tan(b*x)^2*tan(a)^2*tan(b*c/d) + 4*b^2*c*d*x*imag_part(cos_integral(-2*
b*x - 2*b*c/d))*tan(b*x)^2*tan(a)^2*tan(b*c/d) - 8*b^2*c*d*x*sin_integral(2*(b*d*x + b*c)/d)*tan(b*x)^2*tan(a)
^2*tan(b*c/d) - b^2*d^2*x^2*real_part(cos_integral(2*b*x + 2*b*c/d))*tan(b*x)^2*tan(b*c/d)^2 - b^2*d^2*x^2*rea
l_part(cos_integral(-2*b*x - 2*b*c/d))*tan(b*x)^2*tan(b*c/d)^2 + 4*b^2*c*d*x*imag_part(cos_integral(2*b*x + 2*
b*c/d))*tan(b*x)^2*tan(a)*tan(b*c/d)^2 - 4*b^2*c*d*x*imag_part(cos_integral(-2*b*x - 2*b*c/d))*tan(b*x)^2*tan(
a)*tan(b*c/d)^2 + 8*b^2*c*d*x*sin_integral(2*(b*d*x + b*c)/d)*tan(b*x)^2*tan(a)*tan(b*c/d)^2 + b^2*d^2*x^2*rea
l_part(cos_integral(2*b*x + 2*b*c/d))*tan(a)^2*tan(b*c/d)^2 + b^2*d^2*x^2*real_part(cos_integral(-2*b*x - 2*b*
c/d))*tan(a)^2*tan(b*c/d)^2 + b^2*c^2*real_part(cos_integral(2*b*x + 2*b*c/d))*tan(b*x)^2*tan(a)^2*tan(b*c/d)^
2 + b^2*c^2*real_part(cos_integral(-2*b*x - 2*b*c/d))*tan(b*x)^2*tan(a)^2*tan(b*c/d)^2 - 2*b^2*d^2*x^2*imag_pa
rt(cos_integral(2*b*x + 2*b*c/d))*tan(b*x)^2*tan(a) + 2*b^2*d^2*x^2*imag_part(cos_integral(-2*b*x - 2*b*c/d))*
tan(b*x)^2*tan(a) - 4*b^2*d^2*x^2*sin_integral(2*(b*d*x + b*c)/d)*tan(b*x)^2*tan(a) - 2*b^2*c*d*x*real_part(co
s_integral(2*b*x + 2*b*c/d))*tan(b*x)^2*tan(a)^2 - 2*b^2*c*d*x*real_part(cos_integral(-2*b*x - 2*b*c/d))*tan(b
*x)^2*tan(a)^2 + 2*b^2*d^2*x^2*imag_part(cos_integral(2*b*x + 2*b*c/d))*tan(b*x)^2*tan(b*c/d) - 2*b^2*d^2*x^2*
imag_part(cos_integral(-2*b*x - 2*b*c/d))*tan(b*x)^2*tan(b*c/d) + 4*b^2*d^2*x^2*sin_integral(2*(b*d*x + b*c)/d
)*tan(b*x)^2*tan(b*c/d) + 8*b^2*c*d*x*real_part(cos_integral(2*b*x + 2*b*c/d))*tan(b*x)^2*tan(a)*tan(b*c/d) +
8*b^2*c*d*x*real_part(cos_integral(-2*b*x - 2*b*c/d))*tan(b*x)^2*tan(a)*tan(b*c/d) - 2*b^2*d^2*x^2*imag_part(c
os_integral(2*b*x + 2*b*c/d))*tan(a)^2*tan(b*c/d) + 2*b^2*d^2*x^2*imag_part(cos_integral(-2*b*x - 2*b*c/d))*ta
n(a)^2*tan(b*c/d) - 4*b^2*d^2*x^2*sin_integral(2*(b*d*x + b*c)/d)*tan(a)^2*tan(b*c/d) - 2*b^2*c^2*imag_part(co
s_integral(2*b*x + 2*b*c/d))*tan(b*x)^2*tan(a)^2*tan(b*c/d) + 2*b^2*c^2*imag_part(cos_integral(-2*b*x - 2*b*c/
d))*tan(b*x)^2*tan(a)^2*tan(b*c/d) - 4*b^2*c^2*sin_integral(2*(b*d*x + b*c)/d)*tan(b*x)^2*tan(a)^2*tan(b*c/d)
- 2*b^2*c*d*x*real_part(cos_integral(2*b*x + 2*b*c/d))*tan(b*x)^2*tan(b*c/d)^2 - 2*b^2*c*d*x*real_part(cos_int
egral(-2*b*x - 2*b*c/d))*tan(b*x)^2*tan(b*c/d)^2 + 2*b^2*d^2*x^2*imag_part(cos_integral(2*b*x + 2*b*c/d))*tan(
a)*tan(b*c/d)^2 - 2*b^2*d^2*x^2*imag_part(cos_integral(-2*b*x - 2*b*c/d))*tan(a)*tan(b*c/d)^2 + 4*b^2*d^2*x^2*
sin_integral(2*(b*d*x + b*c)/d)*tan(a)*tan(b*c/d)^2 + 2*b^2*c^2*imag_part(cos_integral(2*b*x + 2*b*c/d))*tan(b
*x)^2*tan(a)*tan(b*c/d)^2 - 2*b^2*c^2*imag_part(cos_integral(-2*b*x - 2*b*c/d))*tan(b*x)^2*tan(a)*tan(b*c/d)^2
+ 4*b^2*c^2*sin_integral(2*(b*d*x + b*c)/d)*tan(b*x)^2*tan(a)*tan(b*c/d)^2 + 2*b^2*c*d*x*real_part(cos_integr
al(2*b*x + 2*b*c/d))*tan(a)^2*tan(b*c/d)^2 + 2*b^2*c*d*x*real_part(cos_integral(-2*b*x - 2*b*c/d))*tan(a)^2*ta
n(b*c/d)^2 + b^2*d^2*x^2*real_part(cos_integral(2*b*x + 2*b*c/d))*tan(b*x)^2 + b^2*d^2*x^2*real_part(cos_integ
ral(-2*b*x - 2*b*c/d))*tan(b*x)^2 - 4*b^2*c*d*x*imag_part(cos_integral(2*b*x + 2*b*c/d))*tan(b*x)^2*tan(a) + 4
*b^2*c*d*x*imag_part(cos_integral(-2*b*x - 2*b*c/d))*tan(b*x)^2*tan(a) - 8*b^2*c*d*x*sin_integral(2*(b*d*x + b
*c)/d)*tan(b*x)^2*tan(a) - b^2*d^2*x^2*real_part(cos_integral(2*b*x + 2*b*c/d))*tan(a)^2 - b^2*d^2*x^2*real_pa
rt(cos_integral(-2*b*x - 2*b*c/d))*tan(a)^2 - b^2*c^2*real_part(cos_integral(2*b*x + 2*b*c/d))*tan(b*x)^2*tan(
a)^2 - b^2*c^2*real_part(cos_integral(-2*b*x - 2*b*c/d))*tan(b*x)^2*tan(a)^2 + 4*b^2*c*d*x*imag_part(cos_integ
ral(2*b*x + 2*b*c/d))*tan(b*x)^2*tan(b*c/d) - 4*b^2*c*d*x*imag_part(cos_integral(-2*b*x - 2*b*c/d))*tan(b*x)^2
*tan(b*c/d) + 8*b^2*c*d*x*sin_integral(2*(b*d*x + b*c)/d)*tan(b*x)^2*tan(b*c/d) + 4*b^2*d^2*x^2*real_part(cos_
integral(2*b*x + 2*b*c/d))*tan(a)*tan(b*c/d) + 4*b^2*d^2*x^2*real_part(cos_integral(-2*b*x - 2*b*c/d))*tan(a)*
tan(b*c/d) + 4*b^2*c^2*real_part(cos_integral(2*b*x + 2*b*c/d))*tan(b*x)^2*tan(a)*tan(b*c/d) + 4*b^2*c^2*real_
part(cos_integral(-2*b*x - 2*b*c/d))*tan(b*x)^2*tan(a)*tan(b*c/d) - 4*b^2*c*d*x*imag_part(cos_integral(2*b*x +
2*b*c/d))*tan(a)^2*tan(b*c/d) + 4*b^2*c*d*x*imag_part(cos_integral(-2*b*x - 2*b*c/d))*tan(a)^2*tan(b*c/d) - 8
*b^2*c*d*x*sin_integral(2*(b*d*x + b*c)/d)*tan(a)^2*tan(b*c/d) - b^2*d^2*x^2*real_part(cos_integral(2*b*x + 2*
b*c/d))*tan(b*c/d)^2 - b^2*d^2*x^2*real_part(cos_integral(-2*b*x - 2*b*c/d))*tan(b*c/d)^2 - b^2*c^2*real_part(
cos_integral(2*b*x + 2*b*c/d))*tan(b*x)^2*tan(b*c/d)^2 - b^2*c^2*real_part(cos_integral(-2*b*x - 2*b*c/d))*tan
(b*x)^2*tan(b*c/d)^2 + 4*b^2*c*d*x*imag_part(cos_integral(2*b*x + 2*b*c/d))*tan(a)*tan(b*c/d)^2 - 4*b^2*c*d*x*
imag_part(cos_integral(-2*b*x - 2*b*c/d))*tan(a)*tan(b*c/d)^2 + 8*b^2*c*d*x*sin_integral(2*(b*d*x + b*c)/d)*ta
n(a)*tan(b*c/d)^2 + 2*b*d^2*x*tan(b*x)^2*tan(a)*tan(b*c/d)^2 + b^2*c^2*real_part(cos_integral(2*b*x + 2*b*c/d)
)*tan(a)^2*tan(b*c/d)^2 + b^2*c^2*real_part(cos_integral(-2*b*x - 2*b*c/d))*tan(a)^2*tan(b*c/d)^2 + 2*b*d^2*x*
tan(b*x)*tan(a)^2*tan(b*c/d)^2 + 2*b^2*c*d*x*real_part(cos_integral(2*b*x + 2*b*c/d))*tan(b*x)^2 + 2*b^2*c*d*x
*real_part(cos_integral(-2*b*x - 2*b*c/d))*tan(b*x)^2 - 2*b^2*d^2*x^2*imag_part(cos_integral(2*b*x + 2*b*c/d))
*tan(a) + 2*b^2*d^2*x^2*imag_part(cos_integral(-2*b*x - 2*b*c/d))*tan(a) - 4*b^2*d^2*x^2*sin_integral(2*(b*d*x
+ b*c)/d)*tan(a) - 2*b^2*c^2*imag_part(cos_integral(2*b*x + 2*b*c/d))*tan(b*x)^2*tan(a) + 2*b^2*c^2*imag_part
(cos_integral(-2*b*x - 2*b*c/d))*tan(b*x)^2*tan(a) - 4*b^2*c^2*sin_integral(2*(b*d*x + b*c)/d)*tan(b*x)^2*tan(
a) - 2*b^2*c*d*x*real_part(cos_integral(2*b*x + 2*b*c/d))*tan(a)^2 - 2*b^2*c*d*x*real_part(cos_integral(-2*b*x
- 2*b*c/d))*tan(a)^2 + 2*b^2*d^2*x^2*imag_part(cos_integral(2*b*x + 2*b*c/d))*tan(b*c/d) - 2*b^2*d^2*x^2*imag
_part(cos_integral(-2*b*x - 2*b*c/d))*tan(b*c/d) + 4*b^2*d^2*x^2*sin_integral(2*(b*d*x + b*c)/d)*tan(b*c/d) +
2*b^2*c^2*imag_part(cos_integral(2*b*x + 2*b*c/d))*tan(b*x)^2*tan(b*c/d) - 2*b^2*c^2*imag_part(cos_integral(-2
*b*x - 2*b*c/d))*tan(b*x)^2*tan(b*c/d) + 4*b^2*c^2*sin_integral(2*(b*d*x + b*c)/d)*tan(b*x)^2*tan(b*c/d) + 8*b
^2*c*d*x*real_part(cos_integral(2*b*x + 2*b*c/d))*tan(a)*tan(b*c/d) + 8*b^2*c*d*x*real_part(cos_integral(-2*b*
x - 2*b*c/d))*tan(a)*tan(b*c/d) - 2*b^2*c^2*imag_part(cos_integral(2*b*x + 2*b*c/d))*tan(a)^2*tan(b*c/d) + 2*b
^2*c^2*imag_part(cos_integral(-2*b*x - 2*b*c/d))*tan(a)^2*tan(b*c/d) - 4*b^2*c^2*sin_integral(2*(b*d*x + b*c)/
d)*tan(a)^2*tan(b*c/d) - 2*b^2*c*d*x*real_part(cos_integral(2*b*x + 2*b*c/d))*tan(b*c/d)^2 - 2*b^2*c*d*x*real_
part(cos_integral(-2*b*x - 2*b*c/d))*tan(b*c/d)^2 + 2*b^2*c^2*imag_part(cos_integral(2*b*x + 2*b*c/d))*tan(a)*
tan(b*c/d)^2 - 2*b^2*c^2*imag_part(cos_integral(-2*b*x - 2*b*c/d))*tan(a)*tan(b*c/d)^2 + 4*b^2*c^2*sin_integra
l(2*(b*d*x + b*c)/d)*tan(a)*tan(b*c/d)^2 + 2*b*c*d*tan(b*x)^2*tan(a)*tan(b*c/d)^2 + 2*b*c*d*tan(b*x)*tan(a)^2*
tan(b*c/d)^2 + d^2*tan(b*x)^2*tan(a)^2*tan(b*c/d)^2 + b^2*d^2*x^2*real_part(cos_integral(2*b*x + 2*b*c/d)) + b
^2*d^2*x^2*real_part(cos_integral(-2*b*x - 2*b*c/d)) + b^2*c^2*real_part(cos_integral(2*b*x + 2*b*c/d))*tan(b*
x)^2 + b^2*c^2*real_part(cos_integral(-2*b*x - 2*b*c/d))*tan(b*x)^2 - 4*b^2*c*d*x*imag_part(cos_integral(2*b*x
+ 2*b*c/d))*tan(a) + 4*b^2*c*d*x*imag_part(cos_integral(-2*b*x - 2*b*c/d))*tan(a) - 8*b^2*c*d*x*sin_integral(
2*(b*d*x + b*c)/d)*tan(a) + 2*b*d^2*x*tan(b*x)^2*tan(a) - b^2*c^2*real_part(cos_integral(2*b*x + 2*b*c/d))*tan
(a)^2 - b^2*c^2*real_part(cos_integral(-2*b*x - 2*b*c/d))*tan(a)^2 + 2*b*d^2*x*tan(b*x)*tan(a)^2 + 4*b^2*c*d*x
*imag_part(cos_integral(2*b*x + 2*b*c/d))*tan(b*c/d) - 4*b^2*c*d*x*imag_part(cos_integral(-2*b*x - 2*b*c/d))*t
an(b*c/d) + 8*b^2*c*d*x*sin_integral(2*(b*d*x + b*c)/d)*tan(b*c/d) + 4*b^2*c^2*real_part(cos_integral(2*b*x +
2*b*c/d))*tan(a)*tan(b*c/d) + 4*b^2*c^2*real_part(cos_integral(-2*b*x - 2*b*c/d))*tan(a)*tan(b*c/d) - b^2*c^2*
real_part(cos_integral(2*b*x + 2*b*c/d))*tan(b*c/d)^2 - b^2*c^2*real_part(cos_integral(-2*b*x - 2*b*c/d))*tan(
b*c/d)^2 - 2*b*d^2*x*tan(b*x)*tan(b*c/d)^2 - 2*b*d^2*x*tan(a)*tan(b*c/d)^2 + 2*b^2*c*d*x*real_part(cos_integra
l(2*b*x + 2*b*c/d)) + 2*b^2*c*d*x*real_part(cos_integral(-2*b*x - 2*b*c/d)) - 2*b^2*c^2*imag_part(cos_integral
(2*b*x + 2*b*c/d))*tan(a) + 2*b^2*c^2*imag_part(cos_integral(-2*b*x - 2*b*c/d))*tan(a) - 4*b^2*c^2*sin_integra
l(2*(b*d*x + b*c)/d)*tan(a) + 2*b*c*d*tan(b*x)^2*tan(a) + 2*b*c*d*tan(b*x)*tan(a)^2 + d^2*tan(b*x)^2*tan(a)^2
+ 2*b^2*c^2*imag_part(cos_integral(2*b*x + 2*b*c/d))*tan(b*c/d) - 2*b^2*c^2*imag_part(cos_integral(-2*b*x - 2*
b*c/d))*tan(b*c/d) + 4*b^2*c^2*sin_integral(2*(b*d*x + b*c)/d)*tan(b*c/d) - 2*b*c*d*tan(b*x)*tan(b*c/d)^2 - 2*
b*c*d*tan(a)*tan(b*c/d)^2 - 2*d^2*tan(b*x)*tan(a)*tan(b*c/d)^2 + b^2*c^2*real_part(cos_integral(2*b*x + 2*b*c/
d)) + b^2*c^2*real_part(cos_integral(-2*b*x - 2*b*c/d)) - 2*b*d^2*x*tan(b*x) - 2*b*d^2*x*tan(a) - 2*b*c*d*tan(
b*x) - 2*b*c*d*tan(a) - 2*d^2*tan(b*x)*tan(a) + d^2*tan(b*c/d)^2 + d^2)/(d^5*x^2*tan(b*x)^2*tan(a)^2*tan(b*c/d
)^2 + 2*c*d^4*x*tan(b*x)^2*tan(a)^2*tan(b*c/d)^2 + d^5*x^2*tan(b*x)^2*tan(a)^2 + d^5*x^2*tan(b*x)^2*tan(b*c/d)
^2 + d^5*x^2*tan(a)^2*tan(b*c/d)^2 + c^2*d^3*tan(b*x)^2*tan(a)^2*tan(b*c/d)^2 + 2*c*d^4*x*tan(b*x)^2*tan(a)^2
+ 2*c*d^4*x*tan(b*x)^2*tan(b*c/d)^2 + 2*c*d^4*x*tan(a)^2*tan(b*c/d)^2 + d^5*x^2*tan(b*x)^2 + d^5*x^2*tan(a)^2
+ c^2*d^3*tan(b*x)^2*tan(a)^2 + d^5*x^2*tan(b*c/d)^2 + c^2*d^3*tan(b*x)^2*tan(b*c/d)^2 + c^2*d^3*tan(a)^2*tan(
b*c/d)^2 + 2*c*d^4*x*tan(b*x)^2 + 2*c*d^4*x*tan(a)^2 + 2*c*d^4*x*tan(b*c/d)^2 + d^5*x^2 + c^2*d^3*tan(b*x)^2 +
c^2*d^3*tan(a)^2 + c^2*d^3*tan(b*c/d)^2 + 2*c*d^4*x + c^2*d^3)